import request from '@/utils/request'

export function getInfo(data) {
  return request({
    url: '/api/v1/StorageProductStore/Get',
    method: 'get',
    params: data
  })
}

export function getStatistics(data) {
  return request({
    url: '/api/v1/StorageProductStore/GetStatistics',
    method: 'get',
    params: data
  })
}

export function getList(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/StorageProductStore/GetList',
    method: 'get',
    params: data
  })
}

export function getStoreDetailsList(data, pagination) {
  if (pagination) {
    data["pageIndex"] = pagination.pageIndex;
    data["pageSize"] = pagination.pageSize;
  }
  return request({
    url: '/api/v1/StorageProductStoreDetails/GetList',
    method: 'get',
    params: data
  })
}
export function UpdateSerialNum(data) {
  return request({
    url: '/api/v1/StorageProductStoreDetails/UpdateSerialNum',
    method: 'post',
    data
  })
}

export function getStorageChangeDataList(data) {
  return request({
    url: '/api/v1/StorageChangeData/GetList',
    method: 'get',
    params: data
  })
}
